#include "libedge.h"
#include "libedgeimpl.h"

Edge::Edge()
{
    impl_ = new EdgeImpl();
    impl_->setInterface(this);
}

Edge::~Edge()
{
    if(impl_){
        delete impl_;
        impl_ =nullptr;
    }
}

void Edge::init(const EdgeInitInfo& init){
    impl_->init(init);
}

void Edge::uploadRealData(const std::string& value){
    impl_->uploadRealData(value);
}
void Edge::uploadEventData(const std::string& value){
    impl_->uploadEventData(value);
}

void Edge::onRecieve(const std::string& param){

}

void Edge::onLog(const std::string& param){


}